<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Snake: C:/Documents and Settings/HP_Omistaja/Työpöytä/windowsPeli/winPeliSVN/winPeli/main.h tiedostoreferenssi</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generoinut Doxygen 1.7.4 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Snake</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Pääsivu</span></a></li>
      <li><a href="namespaces.html"><span>Nimiavaruudet</span></a></li>
      <li><a href="annotated.html"><span>Luokat</span></a></li>
      <li class="current"><a href="files.html"><span>Tiedostot</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Tiedostolista</span></a></li>
      <li><a href="globals.html"><span>Tiedoston&#160;jäsenet</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('main_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#define-members">Määrittelyt</a> &#124;
<a href="#func-members">Funktiot</a> &#124;
<a href="#var-members">Muuttujat</a>  </div>
  <div class="headertitle">
<div class="title">C:/Documents and Settings/HP_Omistaja/Työpöytä/windowsPeli/winPeliSVN/winPeli/main.h tiedostoreferenssi</div>  </div>
</div>
<div class="contents">
<div class="textblock"><code>#include &lt;cstdio&gt;</code><br/>
<code>#include &lt;windows.h&gt;</code><br/>
<code>#include &lt;string.h&gt;</code><br/>
<code>#include &lt;time.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="block_8h_source.html">block.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="snake_8h_source.html">snake.h</a>&quot;</code><br/>
<code>#include &quot;..\RegistryDLL\registry.h&quot;</code><br/>
</div>
<p><a href="main_8h_source.html">Siirry tämän tiedoston lähdekoodiin.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="define-members"></a>
Määrittelyt</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#ad9a96c13ef87186fa4d655d45604a20a">LANG</a>&#160;&#160;&#160;0</td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Funktiot</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int WINAPI&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#a661c2abc03926acfaeb93b4ae7db4943">WinMain</a> (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#a7e9e2c2162571da55cf8b32cf826e650">processArguments</a> (int argc, LPWSTR *argv)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">HANDLE&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#ae3381485885520faf445dbe50f0303b4">initGame</a> (HINSTANCE hInstance, int nCmdShow)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">DWORD WINAPI&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#ac7c40abcdda5e965e92c6a8c53f802aa">Update</a> (LPVOID lpParam)</td></tr>
<tr><td colspan="2"><h2><a name="var-members"></a>
Muuttujat</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#a269355668f3684c64057e02ac1e71964">g_szClassName</a> [] = &quot;myWindowClass&quot;</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#aba798b12fcdeffa10019873c8b6286bf">GAMEWIDTH</a> = 20</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#a97754c65b765fd279d70772246b14b90">GAMEHEIGHT</a> = 16</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#a6318aa90c9ce25281d80862cc695261e">TEXT_DIFFICULTY</a> = &quot;Vaikeusaste&quot;</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#a6f51dcf50b525d3658b1438052ecf7dd">TEXT_SCORE</a> = &quot;Pisteet&quot;</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#a09e0039a5f0f6c64c72198f4f65e12de">TEXT_GAMEOVER</a> = &quot;PELI OHI&quot;</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const COLORREF&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#a616e4ef7bbcd56536bbc19dfd5563df2">colors</a> [4] = {RGB(20,20,150), RGB(150,20,20), RGB(20,150,20), RGB(192,192,192)}</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#a016a5d341f375d13639c75bf5987fb23">difficulty</a> = 1</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#a0fd02fb9277ffcb35a75066ffe95e8c7">color</a> = 3</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#aef160b7437d94056f1dc59646cd5b87d">score</a> = 0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#ae5e9542e61196e233d289084760e4ab1">highscore</a> = 0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#a886d551d5381dc3e53f17825ffc51641">direction</a> = 0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#a5b43e44f713e3c93be6db1e65774c2db">gameover</a> = false</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_block.html">Block</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#a62d8100f501558ad77ffb7ca29606347">food</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_snake.html">Snake</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8h.html#a408cd599ea288e5b692809edb69e65c2">snake</a></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Yksityiskohtainen selite</h2>
<div class="textblock"><dl class="author"><dt><b>Tekijä:</b></dt><dd>Henrik Ojanen </dd></dl>
<dl class="version"><dt><b>Versio:</b></dt><dd>1.0.1 </dd></dl>
<dl class="date"><dt><b>Päiväys:</b></dt><dd>12.4.2011 </dd></dl>
</div><hr/><h2>Määritysten dokumentointi</h2>
<a class="anchor" id="ad9a96c13ef87186fa4d655d45604a20a"></a><!-- doxytag: member="main.h::LANG" ref="ad9a96c13ef87186fa4d655d45604a20a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LANG&#160;&#160;&#160;0</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Funktioiden dokumentaatio</h2>
<a class="anchor" id="ae3381485885520faf445dbe50f0303b4"></a><!-- doxytag: member="main.h::initGame" ref="ae3381485885520faf445dbe50f0303b4" args="(HINSTANCE hInstance, int nCmdShow)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">HANDLE initGame </td>
          <td>(</td>
          <td class="paramtype">HINSTANCE&#160;</td>
          <td class="paramname"><em>hInstance</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nCmdShow</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Ikkunan ja säikeen luonti </p>

</div>
</div>
<a class="anchor" id="a7e9e2c2162571da55cf8b32cf826e650"></a><!-- doxytag: member="main.h::processArguments" ref="a7e9e2c2162571da55cf8b32cf826e650" args="(int argc, LPWSTR *argv)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void processArguments </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>argc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPWSTR *&#160;</td>
          <td class="paramname"><em>argv</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Komentoriviargumenttien käsittely </p>

</div>
</div>
<a class="anchor" id="ac7c40abcdda5e965e92c6a8c53f802aa"></a><!-- doxytag: member="main.h::Update" ref="ac7c40abcdda5e965e92c6a8c53f802aa" args="(LPVOID lpParam)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">DWORD WINAPI Update </td>
          <td>(</td>
          <td class="paramtype">LPVOID&#160;</td>
          <td class="paramname"><em>lpParam</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Säiefunktio, joka hoitaa sovelluksen logiikan ja päivittää ruutua. </p>

</div>
</div>
<a class="anchor" id="a661c2abc03926acfaeb93b4ae7db4943"></a><!-- doxytag: member="main.h::WinMain" ref="a661c2abc03926acfaeb93b4ae7db4943" args="(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int WINAPI WinMain </td>
          <td>(</td>
          <td class="paramtype">HINSTANCE&#160;</td>
          <td class="paramname"><em>hInstance</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HINSTANCE&#160;</td>
          <td class="paramname"><em>hPrevInstance</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPSTR&#160;</td>
          <td class="paramname"><em>lpCmdLine</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nCmdShow</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Pääohjelma. </p>

</div>
</div>
<hr/><h2>Muuttujien dokumentaatio</h2>
<a class="anchor" id="a0fd02fb9277ffcb35a75066ffe95e8c7"></a><!-- doxytag: member="main.h::color" ref="a0fd02fb9277ffcb35a75066ffe95e8c7" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="main_8h.html#a0fd02fb9277ffcb35a75066ffe95e8c7">color</a> = 3</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a616e4ef7bbcd56536bbc19dfd5563df2"></a><!-- doxytag: member="main.h::colors" ref="a616e4ef7bbcd56536bbc19dfd5563df2" args="[4]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const COLORREF <a class="el" href="main_8h.html#a616e4ef7bbcd56536bbc19dfd5563df2">colors</a>[4] = {RGB(20,20,150), RGB(150,20,20), RGB(20,150,20), RGB(192,192,192)}</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a016a5d341f375d13639c75bf5987fb23"></a><!-- doxytag: member="main.h::difficulty" ref="a016a5d341f375d13639c75bf5987fb23" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="main_8h.html#a016a5d341f375d13639c75bf5987fb23">difficulty</a> = 1</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a886d551d5381dc3e53f17825ffc51641"></a><!-- doxytag: member="main.h::direction" ref="a886d551d5381dc3e53f17825ffc51641" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="main_8h.html#a886d551d5381dc3e53f17825ffc51641">direction</a> = 0</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a62d8100f501558ad77ffb7ca29606347"></a><!-- doxytag: member="main.h::food" ref="a62d8100f501558ad77ffb7ca29606347" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_block.html">Block</a>* <a class="el" href="main_8h.html#a62d8100f501558ad77ffb7ca29606347">food</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a269355668f3684c64057e02ac1e71964"></a><!-- doxytag: member="main.h::g_szClassName" ref="a269355668f3684c64057e02ac1e71964" args="[]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char <a class="el" href="main_8h.html#a269355668f3684c64057e02ac1e71964">g_szClassName</a>[] = &quot;myWindowClass&quot;</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a97754c65b765fd279d70772246b14b90"></a><!-- doxytag: member="main.h::GAMEHEIGHT" ref="a97754c65b765fd279d70772246b14b90" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const int <a class="el" href="main_8h.html#a97754c65b765fd279d70772246b14b90">GAMEHEIGHT</a> = 16</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a5b43e44f713e3c93be6db1e65774c2db"></a><!-- doxytag: member="main.h::gameover" ref="a5b43e44f713e3c93be6db1e65774c2db" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="main_8h.html#a5b43e44f713e3c93be6db1e65774c2db">gameover</a> = false</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aba798b12fcdeffa10019873c8b6286bf"></a><!-- doxytag: member="main.h::GAMEWIDTH" ref="aba798b12fcdeffa10019873c8b6286bf" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const int <a class="el" href="main_8h.html#aba798b12fcdeffa10019873c8b6286bf">GAMEWIDTH</a> = 20</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ae5e9542e61196e233d289084760e4ab1"></a><!-- doxytag: member="main.h::highscore" ref="ae5e9542e61196e233d289084760e4ab1" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="main_8h.html#ae5e9542e61196e233d289084760e4ab1">highscore</a> = 0</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aef160b7437d94056f1dc59646cd5b87d"></a><!-- doxytag: member="main.h::score" ref="aef160b7437d94056f1dc59646cd5b87d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="main_8h.html#aef160b7437d94056f1dc59646cd5b87d">score</a> = 0</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a408cd599ea288e5b692809edb69e65c2"></a><!-- doxytag: member="main.h::snake" ref="a408cd599ea288e5b692809edb69e65c2" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_snake.html">Snake</a>* <a class="el" href="main_8h.html#a408cd599ea288e5b692809edb69e65c2">snake</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a6318aa90c9ce25281d80862cc695261e"></a><!-- doxytag: member="main.h::TEXT_DIFFICULTY" ref="a6318aa90c9ce25281d80862cc695261e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* <a class="el" href="main_8h.html#a6318aa90c9ce25281d80862cc695261e">TEXT_DIFFICULTY</a> = &quot;Vaikeusaste&quot;</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a09e0039a5f0f6c64c72198f4f65e12de"></a><!-- doxytag: member="main.h::TEXT_GAMEOVER" ref="a09e0039a5f0f6c64c72198f4f65e12de" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* <a class="el" href="main_8h.html#a09e0039a5f0f6c64c72198f4f65e12de">TEXT_GAMEOVER</a> = &quot;PELI OHI&quot;</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a6f51dcf50b525d3658b1438052ecf7dd"></a><!-- doxytag: member="main.h::TEXT_SCORE" ref="a6f51dcf50b525d3658b1438052ecf7dd" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* <a class="el" href="main_8h.html#a6f51dcf50b525d3658b1438052ecf7dd">TEXT_SCORE</a> = &quot;Pisteet&quot;</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="main_8h.html">main.h</a>      </li>
      <li class="footer">Generoinut projektille Snake Sat Apr 16 2011 19:06:20 &#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </li>
    </ul>
  </div>

</body>
</html>
